package com.jdj.framework.dubbo.base.monitor.accesslog.domain;

import java.io.Serializable;

/**
 * 服务访问日志
 * @author caijinbang
 * @date 2019-04-13 15:51
 */
public class ServiceAccessLog implements Serializable {

    private static final long serialVersionUID = 8136663116288357669L;

    /**
     * 流水号
     */
    private Long id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * 版本
     */
    private String serviceVersion = null;

    /**
     * 服务分组
     */
    private String serviceGroup = null;

    /**
     * 方法信息(包括输入参数类型、不包括输出参数类型)
     */
    private String methodInfo = null;

    /**
     * 输入参数值,json格式数据
     */
    private String arguments = null;

    /**
     * 返回值,json格式数据
     */
    private String result = null;

    /**
     * 异常信息
     */
    private String exceptionMsg = null;

    /**
     * 消费者地址
     */
    private String consumerAddress = null;

    /**
     * 消费者应用名
     */
    private String consumerAppName = null;

    /**
     * 提供者地址
     */
    private String providerAddress = null;

    /**
     * 提供者应用名
     */
    private String providerAppName = null;

    /**
     * 开始时间
     */
    private String startTime = null;

    /**
     * 结束时间
     */
    private String endTime = null;

    /**
     * 耗时
     */
    private int elapse;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getServiceVersion() {
        return serviceVersion;
    }

    public void setServiceVersion(String serviceVersion) {
        this.serviceVersion = serviceVersion;
    }

    public String getServiceGroup() {
        return serviceGroup;
    }

    public void setServiceGroup(String serviceGroup) {
        this.serviceGroup = serviceGroup;
    }

    public String getMethodInfo() {
        return methodInfo;
    }

    public void setMethodInfo(String methodInfo) {
        this.methodInfo = methodInfo;
    }

    public String getArguments() {
        return arguments;
    }

    public void setArguments(String arguments) {
        this.arguments = arguments;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getExceptionMsg() {
        return exceptionMsg;
    }

    public void setExceptionMsg(String exceptionMsg) {
        this.exceptionMsg = exceptionMsg;
    }

    public String getConsumerAddress() {
        return consumerAddress;
    }

    public void setConsumerAddress(String consumerAddress) {
        this.consumerAddress = consumerAddress;
    }

    public String getConsumerAppName() {
        return consumerAppName;
    }

    public void setConsumerAppName(String consumerAppName) {
        this.consumerAppName = consumerAppName;
    }

    public String getProviderAddress() {
        return providerAddress;
    }

    public void setProviderAddress(String providerAddress) {
        this.providerAddress = providerAddress;
    }

    public String getProviderAppName() {
        return providerAppName;
    }

    public void setProviderAppName(String providerAppName) {
        this.providerAppName = providerAppName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public int getElapse() {
        return elapse;
    }

    public void setElapse(int elapse) {
        this.elapse = elapse;
    }

    @Override
    public String toString() {
        return "ServiceAccessLog{" +
            "id=" + id +
            ", userId='" + userId + '\'' +
            ", serviceName='" + serviceName + '\'' +
            ", serviceVersion='" + serviceVersion + '\'' +
            ", serviceGroup='" + serviceGroup + '\'' +
            ", methodInfo='" + methodInfo + '\'' +
            ", arguments='" + arguments + '\'' +
            ", result='" + result + '\'' +
            ", exceptionMsg='" + exceptionMsg + '\'' +
            ", consumerAddress='" + consumerAddress + '\'' +
            ", consumerAppName='" + consumerAppName + '\'' +
            ", providerAddress='" + providerAddress + '\'' +
            ", providerAppName='" + providerAppName + '\'' +
            ", startTime='" + startTime + '\'' +
            ", endTime='" + endTime + '\'' +
            ", elapse=" + elapse +
            '}';
    }
}
